'''
r1 = 1 != 1 or 8 < 1 and 6 > 3
print(r1)
r2 = 1 != 1 or not 8 < 1 and 6 > 3
print(r2)
r3 = 1 != 1 or not (8 < 1 and 6 > 3)
print(r3)
'''

# 判断 ( 1000 - x ) * 30 的结果是否落在 1 - 10000 区间内
num = int(input("请输入一个数字："))
result = (1000 - num) * 30
if result >= 1 and result <= 10000:
    print("落在 1 - 10000 区间内！")
else:
    print("不落在 1 - 10000 区间内！")